package com.example.live.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
/**
 * @author:zhuzewen
 * @data:2024/12/16 0016 11:26
 */


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("room_infos")
public class RoomInfo implements Serializable {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

//    序列化为json设置
//    @JsonProperty("created_at")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdAt;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updatedAt;
    private String title;
    private String anchor;

    @TableField("extends")
    private String extendsInfo;
    private Long status;
    private Long mode;
    private String chatId;
    private String pkId;
    private String notice;
    private String meetingId;
    private String coverUrl;
    private String anchorId;
    private String anchorNick;
    private String vodId;
    private String meetingInfo;



    private Date startedAt;
    private Date stoppedAt;

//    private LocalDateTime startedAt;
//    private LocalDateTime stoppedAt;


}

